# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=clipman
pkgver=1.6.1
pkgrel=3
pkgdesc="A simple clipboard manager for Wayland"
url="https://github.com/yory8/clipman"
arch="all"
license="GPL-3.0-only"
depends="wl-clipboard"
makedepends="go"
options="!check" # no tests
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/yory8/clipman/archive/v$pkgver.tar.gz"

build() {
	go build -o $pkgname
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 docs/clipman.1 -t "$pkgdir"/usr/share/man/man1
}
sha512sums="
4d02cad58a5637df64a32673406632a9626633fa2bfc6cff28dc6c724048a3f6e40482a3f0eca64ad0af2e0100b426d8779beef29f24e28b5c494878ae1c0ef4  clipman-1.6.1.tar.gz
"
